Skip to content

Fix JavaScript escaped line terminator extraction - #1315

Open
nightcityblade wants to merge 1 commit into
python-babel:masterfrom
nightcityblade:fix/issue-1056
Open

nightcityblade wants to merge 1 commit into
python-babel:masterfrom
nightcityblade:fix/issue-1056

Conversation

@nightcityblade

Copy link
Copy Markdown

Fixes #1056

Summary

  • remove escaped line terminators when unquoting JavaScript strings
  • add extraction regression coverage for a string continued across a newline

Tests

  • .venv/bin/python -m pytest -q tests/messages/test_jslexer.py tests/messages/test_js_extract.py
  • .venv/bin/pre-commit run --files babel/messages/jslexer.py tests/messages/test_js_extract.py

@akx akx added the area/javascript JavaScript extractor label Aug 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/javascript JavaScript extractor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

javascript extraction method gives unexpected results with escaped newlines

2 participants